package com.basic.inspection.controller;

import com.basic.common.result.WebResult;
import com.basic.inspection.domain.PumpPerformanceDataBo;
import com.basic.inspection.service.PumpPerformanceDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wei
 * @Date 2024/9/2
 * @Description 泵站绩效分析表-相关接口
 */

@RestController
@RequestMapping(value = "/pumpPerformanceData")
public class PumpPerformanceDataController {

    @Autowired
    private PumpPerformanceDataService pumpPerformanceDataService;

    /**
     * 泵站绩效分析-实际额定功率,能耗比
     * @param bo 实体类
     * @return WebResult
     */
    @PostMapping("/selPfdPowerAndEnergy")
    public WebResult selPfdPowerAndEnergy(@RequestBody PumpPerformanceDataBo bo) {
        return WebResult.success(pumpPerformanceDataService.selPfdPowerAndEnergy(bo));
    }


}
